<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>


<link rel="stylesheet"	href="http://yui.m3958.com/combo?3.5.1/build/cssreset/cssreset.css&3.5.1/build/cssfonts/cssfonts.css" type="text/css">

<link rel="stylesheet" href="http://yui.m3958.com/m3958-module-css/newxyzcms.css" type="text/css">
<link rel="stylesheet" href="http://yui.m3958.com/m3958-module-css/message-panel.css" type="text/css">

<script src="http://yui.m3958.com/3.5.1/build/yui/yui-min.js"></script>

<script src="http://yui.m3958.com/m3958-module-js/m3958-modules-js.js"></script>

<style type="text/css">
#newxyzcms-app-container {
	width: 90%;
	margin: auto;
}


/*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/

#newxyzcms-app-links,#m3958-back-forward-c,.minimizable-block-table,.yui3-MinimizableBlock-toggle{
	display: none;
}

</style>
</head>
<body class="yui3-skin-sam">
	<table>
		<tr>
			<td valign="middle" align="center"></td>
		</tr>
		<tr>
			<td></td>
		</tr>
	</table>

	<div id="newxyzcms-app-container">
		<div id="newxyzcms-app-links" style="margin-bottom: 6px;">
		</div>
		<div id="m3958-back-forward-c"><a href="#/" id="m3958-back-forward">&lt;&lt;返回前一页</a></div>
	<div id="newxyzcms-app"></div>
	</div>
	
 <script type="text/javascript">
 	// YUI.Env.DataSource.callbacks.yui_3_5_1_1_1341572288766_1854({"meta":{"startRow":0,"rowNum":1,"totalNum":1},"success":true,"data":[{"authorityName":"snvfrf","createdAt":1340252881000,"id":1,"version":1}],"errors":null})
 	//add post
 	//send :
 	//form data:id: authorityName:dssfed
 	//return: {"meta":{"startRow":0,"rowNum":1,"totalNum":1},"success":true,"data":[{"authorityName":"dssfed","createdAt":1341572401561,"id":101,"version":1}],"errors":null}
	
 	//siteId;audit;xingming;xingbie;Date shengri;shouji;email;dianhua;dizhi;leixing;youbian;title;content;reply;baomima;gongkai;Date repliedAt;List<Asset> attachments;List<XinJianCat> xjCats;tplName;
 	
 		var m3958_classDescList = function(Y){
 			Y.log('am i object?');
 			Y.log(Y.Lang.isObject(/[0-9\-]/i));
 		return [
 		{viewPath:'/xinjians*',viewName:'xinjianNewPage',name:'Xinjian',cname:'留言',
		backController : 'xinjians',
		fields : [{name:'id',label:'ID',valueType:'string',ftype:'hidden',required:true,showInTable:true,showInSelectTable:false,validators:[],position:1},
		          {name:'xjcatid',label:'xjcatid',valueType:'string',ftype:'hidden',initvalue:11252,valueNotChange:true,required:true,showInTable:true,showInSelectTable:false,validators:[],position:1},
		          {name:'siteid',label:'siteid',valueType:'string',ftype:'hidden',initvalue:8920,valueNotChange:true,required:true,showInTable:true,showInSelectTable:false,validators:[],position:1},
		          {name:'leixing',label:'类型',tableWidth:300,formWidth:300,valueType:'string',ftype:'htmlSelect',required:true,showInTable:true,showInSelectTable:true,validators:[],options:[{label:'咨询',value:'咨询'},{label:'投诉',value:'投诉'},{label:'其它',value:'其它'}],position:80},
		          {name:'title',label:'标题',valueType:'string',ftype:'text',required:true,showInTable:false,showInSelectTable:false,validators:['>3'],formWidth:'90%',position:90},
		          {name:'xingming',label:'您的姓名',valueType:'string',ftype:'text',required:true,showInTable:false,showInSelectTable:false,validators:['>1'],formWidth:'45%',position:5},
		          {name:'dianhua',label:'您的电话',valueType:'string',ftype:'text',required:true,showInTable:false,showInSelectTable:false,validators:['/^[0-9-]{7,}$/'],formWidth:'45%',position:10},
		          {name:'dizhi',label:'您的地址',valueType:'string',ftype:'text',required:false,showInTable:false,showInSelectTable:false,validators:['>4'],formWidth:'45%',position:15},
		          {name:'email',label:'您的邮件',valueType:'string',ftype:'text',required:false,showInTable:false,showInSelectTable:false,validators:['email'],formWidth:'45%',position:20},
		          {name:'content',label:'留言内容',valueType:'string',ftype:'textarea',required:true,showInTable:false,showInSelectTable:false,formWidth:'100%',validators:['>10'],position:100,decoration:{decorator:'codemirror',subtype:'htmlMixedMode',cfg:{mode: "text/html", tabMode: "indent",lineNumbers: true,theme:'rubyblue'}}},
		          {name:'captcha_answer',label:'验证码',valueType:'string',ftype:'captcha',required:true,showInTable:false,showInSelectTable:false,validators:['=5'],position:110}
		          ],
		debugMode : false,
		tableDescription : {datasourceUrl:'appauthorities',caption:'角色表',initSortBy:{'createdAt':-1},cacheSize:3,pageSize:3,loadingMessage:'正在加载...'},
		formDescription: {},
		selectPanelDescription:{title:'选择角色'},
		m2mPanelDescription:{title:'选择角色'}}];
	};
	
 	var m3958_default_route_path = "/xinjians";
 	</script>
 
	<script type="text/javascript" src="http://yui.m3958.com/m3958-module-js/alone/newxyzcms.js">
	</script>
</body>
</html>